Skip to content

Import portable personal configs (ssh, nix, gh)#2

Merged
davidham merged 3 commits into
mainfrom
feature/import-personal-configs
May 20, 2026
Merged

Import portable personal configs (ssh, nix, gh)#2
davidham merged 3 commits into
mainfrom
feature/import-personal-configs

Conversation

@davidham

Copy link
Copy Markdown
Owner

Summary

Three small portable configs migrated from $HOME into the repo for personal-laptop portability:

  • ~/.ssh/confighome/ssh/config — 6-line SSH client config (github.com identity, keychain integration). No work hostnames.
  • ~/.config/nix/nix.confxdg/nix/nix.conf — enables nix-command + flakes. Travels regardless of whether Nix becomes primary on personal.
  • ~/.config/gh/config.ymlxdg/gh/config.yml — gh CLI preferences incl. `co: pr checkout` alias. `hosts.yml` (auth tokens) intentionally NOT imported.

What I deliberately skipped (and why)

  • VSCode settings/keybindings/snippets — Settings Sync is on; dotfiles version would just be a second source of truth that drifts.
  • Cursor — user moved to VSCode as primary editor.
  • iTerm2 — user is on Ghostty now.
  • .tool-versions — pending Nix evaluation; tool installs still out of scope per earlier decision.
  • ~/.aws/config — work SSO profiles only, not portable.
  • ~/.config/gh/hosts.yml, ~/.config/cagent/user-uuid, ~/.config/gcx/, etc. — credentials or work-internal.

Test plan

  • Each commit leaves the symlink working (`ls -la` of target path confirms).
  • `gh auth status` still succeeds (hosts.yml untouched).
  • `./scripts/lint` and pre-commit hooks pass per-commit.
  • CI passes on PR.

🤖 Generated with Claude Code

davidham added 3 commits May 20, 2026 10:12
Tiny SSH client config (6 lines: AddKeysToAgent, UseKeychain, IdentityFile
for github.com). No work hostnames; fully portable to a personal machine.

home/ssh/config -> ~/.ssh/config (Dotbot creates the symlink inside the
existing ~/.ssh/ directory; surrounding key files are untouched).
One-line nix config enabling experimental nix-command and flakes
features. Travels regardless of whether you go all-in on Nix later --
the setting itself is portable shorthand for 'modern Nix UX please.'
GitHub CLI preferences (notably 'co' alias for 'pr checkout'). Skips
hosts.yml -- that file holds OAuth tokens and stays out of the repo.
gh auth state is unaffected because hosts.yml is unchanged.
@davidham davidham merged commit 6059b42 into main May 20, 2026
2 checks passed
@davidham davidham deleted the feature/import-personal-configs branch May 20, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant